<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Charge/index')}">消费记录</a></li>
		</ul>
<!--         <form class="well form-search" method="post" action="{:U('consumption/index')}">        	
        	赛事名称:
            <input type="text" name="event_name" style="width: 100px;" value="{$event_name}" placeholder="请输入赛事姓名">
            客户手机号:
            <input type="text" name="customer_mobile" style="width: 100px;" value="{$customer_mobile}" placeholder="客户手机号">
            授权码:
            <input type="text" name="auth_code" style="width: 100px;" value="{$auth_code}" placeholder="授权码">
            &nbsp;
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:U('Consumption/index')}">清空</a>
        </form> -->
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">商户订单号</th>
					<th width="50">用户手机号</th>
                    <th width="50">开始时间</th>
					<th width="50">结束时间</th>
					<th width="10">使用时长</th>
					<th width="50">球房名称</th>
					<th width="60">锁编号</th>
					<th width="20">杆编号</th>
					<th width="20">消费金额</th>
					<th width="10">是否支付</th>
					<!-- <th width="10">微信用户标识</th> -->
				</tr>
			</thead>
			<tbody>
		
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.out_trade_no}</td>
					<td>{$vo.mobile}</td>					
					<td><if condition="$vo['start_time'] eq '0'">-
					<else />
					{$vo['start_time'] | date='Y-m-d H:i:s',###}
                    </if></td>
					<td>
					<if condition="$vo['end_time'] eq '0'">-
					<else />
					{$vo['end_time'] | date='Y-m-d H:i:s',###}
                    </if>
					</td>
					<td>{:formatDuration($vo['duration'])}</td>
					<td>{$vo['club_name']}</td>
				    <td>{$vo['lock_number']}</td>
					<td>{$vo['cue_number']}</td>
				    <td style="text-align:right">{$vo['amount']}</td>
				   <!--  <td>{$vo.wx_openid}</td> -->
				    <td>
				    	<if condition="$vo['is_pay'] eq '0'">
                        否
				    	<else />
                        是
				        </if>
				    </td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>